package com.mySpringMvc.web.servlet;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * @program: mySSM
 * @description: 处理器适配器接口
 * @author:wjp
 * @create: 2025-02-13 18:21
 **/
public interface HandlerAdapter {
    /**
     * 执行处理器方法，返回模型视图对象，底层会通过反射真正去调用处理器
     * @param request 请求对象
     * @param response 响应对象
     * @param handler 处理器
     * @return 模型和视图对象
     * @throws Exception 抛出异常
     */
    ModalAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;
}
